package com.jswj.screenshot.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 截图对象 screenshot
 * 
 * @author whh
 * @date 2021-07-07
 */
public class Screenshot extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 媒体平台 */
    @Excel(name = "媒体平台")
    private String media;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 链接 */
    @Excel(name = "链接")
    private String link;

    /** 截图时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截图时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    /** 图片 */
    @Excel(name = "图片")
    private String img;

    /** 位置 */
    @Excel(name = "位置")
    private String position;

    /** 关键词ID */
    @Excel(name = "关键词ID")
    private Long wordId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMedia(String media)
    {
        this.media = media;
    }

    public String getMedia()
    {
        return media;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setLink(String link)
    {
        this.link = link;
    }

    public String getLink()
    {
        return link;
    }
    public void setAddTime(Date addTime)
    {
        this.addTime = addTime;
    }

    public Date getAddTime()
    {
        return addTime;
    }
    public void setImg(String img)
    {
        this.img = img;
    }

    public String getImg()
    {
        return img;
    }
    public void setPosition(String position)
    {
        this.position = position;
    }

    public String getPosition()
    {
        return position;
    }
    public void setWordId(Long wordId)
    {
        this.wordId = wordId;
    }

    public Long getWordId()
    {
        return wordId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("media", getMedia())
            .append("title", getTitle())
            .append("link", getLink())
            .append("addTime", getAddTime())
            .append("img", getImg())
            .append("position", getPosition())
            .append("wordId", getWordId())
            .toString();
    }
}
